<?php
$this->headLink(array('href' => '/cms/styles/style.css', 'rel' => "stylesheet", 'type' => "text/css"));
$this->headScript()
	->appendFile('/cms/scripts/dojo/dojo.js','',array('djConfig'=> 'parseOnLoad:true'))
	->setAllowArbitraryAttributes(true);
?>
Смена пароля:
<?php if( $this->msg ) { ?>
<br />    <?=$this->msg?> <br />
<?php } ?>
<table border=0 width='100%'>
<form method="POST" action="/cms/users/pass/user_id/<?=$this->user->user_id?>">
<input type='hidden' name='login' value='<?=$this->user->login?>'>
<tr>
    <td align='left'>Пароль:</td>
    <td>
        <input type='text' name='password' id='password' value='' size=20>
        <a href='#' onclick='
            dojo.xhrGet({                
                url: "/cms/users/genpass/<?=$this->user->login?>",
                load: function(response, ioArgs) {
                    document.getElementById("password").value = response;
                    return false
                },
                error: function(response, ioArgs){
                    alert("An error occurred, with response: " + response);
                    return response;
                },
                handleAs: "text",
                sync: true
            });
        '>Сгенерировать</a>
    </td>
</tr>
<tr>
    <td colspan=2 align="center">
        <input type="checkbox" name="notification" checked>Уведомит пользователя по e-mail<br />
        <input type="submit" name="btn_save" value="Сохранить">
    </td>
</tr>
</form>
</table>